﻿using SqlSugar;
using System;
namespace Learun.Application.TwoDevelopment.ZZDT_EC

{
    /// <summary>
    /// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
    /// Copyright (c) 2013-2018 Hexagon PPM
    /// 创 建：超级管理员
    /// 日 期：2022-08-23 17:31
    /// 描 述：命名规则，与对象类型和属性都有关联
    /// </summary>
    [SugarTable(TableName = "ec_objecttypenamingconv")]
    public class ec_objecttypenamingconvEntity
    {
        #region 实体成员
        /// <summary>
        /// ObjectTypeNVID
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsPrimaryKey = true)]
        public string ObjectTypeNVID { get; set; }
        /// <summary>
        /// ObjectTypeID。<see cref="ec_objecttypeEntity.ObjectTypeID"/>
        /// </summary>
        /// <returns></returns>
        public string ObjectTypeID { get; set; } = "";
        /// <summary>
        /// ObjectTypePID。<see cref="ec_objecttypepEntity.ObjectTypePID"/>
        /// </summary>
        /// <returns></returns>
        public string ObjectTypePID { get; set; } = "";
        /// <summary>
        /// ObjectTypePName
        /// </summary>
        /// <returns></returns>
        public string ObjectTypePName { get; set; } = "";
        /// <summary>
        /// Segmentno
        /// </summary>
        /// <returns></returns>
        public string Segmentno { get; set; } = "";
        /// <summary>
        /// Length
        /// </summary>
        /// <returns></returns>
        public string Length { get; set; } = "";
        /// <summary>
        /// Sepator
        /// </summary>
        /// <returns></returns>
        public string Sepator { get; set; } = "";
        /// <summary>
        /// Segmenttype
        /// </summary>
        /// <returns></returns>
        public string Segmenttype { get; set; } = "";
        #endregion

        #region 扩展操作
        /// <summary>
        /// 新增调用
        /// </summary>
        public void Create()
        {
            this.ObjectTypeNVID = Guid.NewGuid().ToString();
        }
        /// <summary>
        /// 编辑调用
        /// </summary>
        /// <param name="keyValue"></param>
        public void Modify(string keyValue)
        {
            this.ObjectTypeNVID = keyValue;
        }
        #endregion


        #region 扩展字段


        /// <summary>
        /// 属性组ID
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsIgnore = true)]
        public string PropertyGID { get; set; }

        /// <summary>
        /// 属性组名称
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsIgnore = true)]
        public string PropertyGroupName { get; set; }
        /// <summary> 
        /// 属性名称 
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string PropertyName { get; set; }
        /// <summary> 
        /// 属性名称(英文)
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string PropertyNameEN { get; set; }
        /// <summary> 
        /// 属性类型 
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string PropertyType { get; set; }
        /// <summary> 
        /// 小数点 
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public int? DecimalPoint { get; set; }
        /// <summary> 
        /// 枚举数据 
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string EnumData { get; set; }
        /// <summary>
        /// 枚举数据字典名称
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsIgnore = true)]
        public string EnumDataCode { get; set; }
        /// <summary> 
        /// 计量单位分类名称
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string MeasuringUnitTypeName { get; set; }
        /// <summary> 
        /// 默认计量单位名称
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string DefaultUnitName { get; set; }
        /// <summary> 
        /// 计量单位分类ID 
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string MeasuringUnitTypeID { get; set; }
        /// <summary> 
        /// 默认计量单位ID
        /// </summary> 
        [SugarColumn(IsIgnore = true)]
        public string DefaultUnit { get; set; }
        #endregion
    }
}

